<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>密码重置通知</title>
    <style>
        body {
            font-family: 'Helvetica Neue', Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        .header {
            text-align: center;
            margin-bottom: 25px;
        }
        .content-box {
            background-color: #f8f9fa;
            border-radius: 8px;
            padding: 20px;
            margin: 20px 0;
        }
        .password-display {
            font-size: 18px;
            font-weight: bold;
            color: #e74c3c;
            background-color: #fde8e8;
            padding: 10px 15px;
            border-radius: 5px;
            text-align: center;
            margin: 15px 0;
            word-break: break-all;
        }
        .button {
            display: inline-block;
            background-color: #1e88e5;
            color: white !important;
            text-decoration: none;
            padding: 10px 20px;
            border-radius: 5px;
            font-weight: bold;
            margin: 15px 0;
        }
        .footer {
            font-size: 12px;
            color: #777;
            text-align: center;
            margin-top: 30px;
            border-top: 1px solid #eee;
            padding-top: 15px;
        }
        .warning {
            color: #d32f2f;
            font-weight: bold;
        }
    </style>
</head>
<body>
<div class="header">
    <h2>密码重置通知</h2>
</div>

<p>尊敬的 <span th:text="${userName}">用户</span>，您好：</p>

<div class="content-box">
    <p>您的账户密码已重置，新密码如下：</p>

    <div class="password-display" th:text="${password}">NewPassword123!</div>

    <p class="warning">* 请妥善保管此密码，建议登录后立即修改</p>
    <p>重置时间：<span th:text="${#dates.format(#dates.createNow(), 'yyyy-MM-dd HH:mm:ss')}"></span></p>
</div>

<div class="footer">
    <p>此为系统自动发送邮件，请勿直接回复</p>
    <p>© <span th:text="${#dates.format(#dates.createNow(), 'yyyy')}"></span> 系统版权所有</p>
</div>
</body>
</html>